package cn.cvs.service;

import cn.cvs.mapper.SysRightMapper;
import cn.cvs.pojo.SysRight;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysRightServiceImpl extends ServiceImpl<SysRightMapper, SysRight> implements SysRightService {

    @Resource
    SysRightMapper rightMapper;

    @Override
    public List<SysRight> getSysRightByUserRoleId(Long roleId) {
        return rightMapper.getSysRightByUserRoleId(roleId);
    }

    @Override
    public List<SysRight> getAllSysRight() {
        return rightMapper.getAllSysRight();
    }
}
